<?php
class Template
{
	public $LayoutPath;
	public $ViewPath;
	public $ViewData;
	public $Model;

	public function __construct($viewPath, $layoutPath, $viewData, $model)
	{
		$this->LayoutPath = $layoutPath;
		$this->ViewPath = $viewPath;
		$this->Model = $model;
		$this->ViewData = $viewData;
	}

	public function LoadTempate($viewPath, $layoutPath)
	{		
		if($this->LayoutPath != null)
		{
			include($this->LayoutPath);
		}
		else
		{
			include($this->ViewPath);
		}
	}
}